import { redirect } from '@modern-js/runtime/router';

export const loader = () => {
    //   const user = await getUser();
    const user = 1; // Simulating no user for demonstration purposes
    if (!user) {
        return redirect('/login');
    }
    return null;
};